﻿//        Another Demo from Andy L. & MissedMemo.com
// Borrow whatever code seems useful - just don't try to hold
// me responsible for any ill effects. My demos sometimes use
// licensed images which CANNOT legally be copied and reused.


namespace MissedMemo.MeatAndCheeseDisc.BusinessLogic
{
    static class NowServingNumberGenerator
    {
        private readonly static int minNumber = 100;
        private readonly static int maxNumber = 999;

        private static int _next = minNumber;

        public static int Next()
        {
            if( _next > maxNumber )
                _next = minNumber;

            return _next++;
        }
    }
}
